<%-- 
    Document   : admin_home
    Created on : 16 Jan, 2013, 7:27:53 PM
    Author     : jaguar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="connection.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/theme.css" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <script>
             var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
             document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
        </script>
        <link rel="stylesheet" href="js/jquery-ui-1.8.23.custom/development-bundle/themes/base/jquery.ui.all.css">
        <script src="js/jquery-ui-1.8.23.custom/js/jquery-1.7.2.min.js" type="text/javascript"></script> 
        <script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.core.js"></script>
	<script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.accordion.js"></script>
        <script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.autocomplete.js"></script>
        
        <script>
    $(function() {
		$( "#sidebar" ).accordion({
			autoHeight:false,
                        event: "mouseover"
		});
                var availableTags = [<%
                        st=con.createStatement();
                        rs=st.executeQuery("select ticker from company");
                        while(rs.next())
                        {
                          out.print("\""+rs.getString(1)+"\",");  
                        }
                        %>];
		$( "#sym_id" ).autocomplete({
			source: availableTags
		});
	});
        
    
</script>
<title>Expert Page</title>
    </head>
    <body>
                          
        <div id="container">
                <div id="header">
                    <h2>Stock Market Website</h2>
                    <div id="topmenu">
                      <ul>
                    <li><a href="admin_home.jsp">Dashboard</a></li>
                    <li><a href="admin_users.jsp">Users</a></li>
                    <li><a href="companies.jsp">Companies</a></li>
                   <!-- <li><a href="portfolio.jsp">Portfolio</a></li>
                    <li><a href="charts.jsp">Charts</a></li>-->
                    <!--<li><a href="chatgroup_admin.jsp">Chat Group</a></li>-->
                    <li class="current"><a href="experts_admin.jsp">Experts</a></li>
                    <!--                    <li><a href="emails.jsp">Emails</a></li>-->
                      </ul>
                    </div>
                </div>
        <div id="top-panel">
          
          <form action="" name="quoteform" >
              	<input type="text" placeholder="Enter company symbol" name="sym_nm" id="sym_id" />
                <input type="submit" value="Get Stock Value" />
          </form>
          
        </div>
        <div id="wrapper">
            <div id="content"> 
                <form action="review.jsp">
                    <table>
                        <tr>
                            <td>Enter review : </td>
                            <td>
                                <textarea name="rev" id="rev" rows="2" cols="80"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td><input type="submit" value="Submit" /></td>
                            <td><input type="reset" value="Reset" /></td>
                        </tr>
                    </table>
                </form>
            </div>
                  
        <div id="sidebar">
  	
                	<li><h3><a href="#" class="house">Dashboard</a></h3>
                        <ul>
                        	<li><a href="logout.jsp" class="report">Logout</a></li>
                        </ul>
                    </li>
                                  
                  <li><h3><a href="#" class="user">Experts</a></h3>
          				<ul>
                             
            				<li><a href="find_user.jsp" class="search">Find expert</a></li>
                           
                        </ul>
                    </li>
				       
          </div>
      </div>
        <div id="footer">
        <div id="styleswitcher">
            <ul>
                <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li>
                <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li>
                <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li>
                <li><a href="javascript: document.cookie='theme=5'; window.location.reload();" title="Mix" id="defswitch">m</a></li>
            </ul>
        </div><br />

        </div>
</div>
</body>
</html>

                       
            

        